package service

import (
	"context"
	"mini-app/internal/dal"
	"mini-app/internal/dao"
	"mini-app/internal/models"
)

type User struct{}

func (User) List(ctx context.Context, id string, startTime, endTime int64, nickName, phone string, page, limit int) (
	list []*models.User, total int64, err error) {
	list, total, _ = dao.User{}.List(context.Background(), dal.Q, id, "", phone, nickName, "", startTime, endTime, page, limit)
	return
}
